!function(){"use strict";var e=function(){var e=setTimeout;function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function r(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn((function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var r;try{r=t(e._value)}catch(e){return void o(n.promise,e)}i(n.promise,r)}else(1===e._state?i:o)(n.promise,e._value)}))):e._deferreds.push(n)}function i(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if(n instanceof t)return e._state=3,e._value=n,void a(e);if("function"==typeof r)return void c((i=r,u=n,function(){i.apply(u,arguments)}),e)}e._state=1,e._value=n,a(e)}catch(n){o(e,n)}var i,u}function o(e,n){e._state=2,e._value=n,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&t._immediateFn((function(){e._handled||t._unhandledRejectionFn(e._value)}));for(var n=0,i=e._deferreds.length;i>n;n++)r(e,e._deferreds[n]);e._deferreds=null}function u(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function c(e,n){var t=!1;try{e((function(e){t||(t=!0,i(n,e))}),(function(e){t||(t=!0,o(n,e))}))}catch(e){if(t)return;t=!0,o(n,e)}}t.prototype.catch=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var i=new this.constructor(n);return r(this,new u(e,t,i)),i},t.prototype.finally=function(e){var n=this.constructor;return this.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){return n.reject(t)}))}))},t.all=function(e){return new t((function(n,t){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);var i=r.length;function o(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(n){o(e,n)}),t)}r[e]=a,0==--i&&n(r)}catch(e){t(e)}}for(var a=0;r.length>a;a++)o(a,r[a])}))},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t((function(n){n(e)}))},t.reject=function(e){return new t((function(n,t){t(e)}))},t.race=function(e){return new t((function(n,t){for(var r=0,i=e.length;i>r;r++)e[r].then(n,t)}))},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(n){e(n,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var s=t;return/native code/.test(window.Promise)?window.Promise:s}();function n(e,n){return e+n}var t={}.hasOwnProperty;function r(e,n){return t.call(n,e)}function i(){return(i=Object.assign||function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),i=1;n>i;i++)t[i-1]=arguments[i];return t.forEach((function(n){for(var t in n)r(t,n)&&(e[t]=n[t])})),e}).apply(void 0,arguments)}var o=Array.isArray;function a(e){return"object"==typeof e&&null!==e&&!o(e)}function u(e,n){return Object.keys(n).reduce((function(t,r){return t[r]=e(n[r]),t}),{})}function c(e){return o(e)?e.map(c):a(e)?u(c,e):e}function s(e,n){for(var t=0;n.length>t;t++){var r=n[t];if(e(r))return r}}function d(e,n){for(var t=n.length-1;t>=0;t--)if(e(n[t]))return n[t]}function l(e){return e}function f(e,n){return Object.keys(n).forEach((function(t){e(n[t],t)}))}function p(){return Math.random().toString(36).substring(2)}function m(e){var n=p();return r(n,e)?m(e):n}function h(e,n,t){var r=function(e,n){for(var t="string"==typeof e?e.split("."):e,r=0,i=n;i&&t.length>r;)i=i[t[r++]];return i}(n,t);return null!=r?r:e}function v(e,n){return-1!==n.indexOf(e)}function g(e){return 0===(o(e)?e:Object.keys(e)).length}function _(e){return!e}function w(e){return!!e}function y(e){return e.length>0?e[e.length-1]:null}function b(e,n){return Object.keys(n).reduce((function(t,r){return t[e(r)]=n[r],t}),{})}function k(e,n){if(g(n))return e;var t={};return f((function(i,u){if(r(u,n))if(a(e[u])&&a(n[u]))t[u]=k(e[u],n[u]);else if(o(e[u])&&o(n[u])){var c=Math.max(e[u].length,n[u].length);t[u]=Array(c);for(var s=0;c>s;s++)s in n[u]?t[u][s]=n[u][s]:s in e[u]&&(t[u][s]=e[u][s])}else t[u]=n[u];else t[u]=e[u]}),e),f((function(e,i){r(i,t)||(t[i]=n[i])}),n),t}function C(e){if(0===e.length)return{};var n=e[0];return e.slice(1).reduce((function(e,n){return k(e,n)}),n)}function I(e){return function(e,n){var t={};return function(){var i=e.apply(void 0,arguments);if(r(i,t))return t[i];var o=n.apply(void 0,arguments);return t[i]=o,o}}(l,e)}function E(){}function L(){return(L=Object.assign||function(e){for(var n=1;arguments.length>n;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function x(e,n){return e===n?0!==e||0!==n||1/e==1/n:e!=e&&n!=n}function A(e,n){if(x(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(var i=0;t.length>i;i++)if(!r(t[i],n)||!x(e[t[i]],n[t[i]]))return!1;return!0}function O(e){return e.reduce(n,0)}function T(e){return Array.prototype.slice.call(e)}var P=function(e){return Object.keys(e).map((function(n){return[n,e[n]]}))};var S=function(e,n){f((function(e,t){n.style[t]=e}),e)},z=function(e,n){f((function(e,t){"style"!==t?n.setAttribute(t,e):S(e,n)}),e)},j=function(){return!!document.documentElement.currentStyle},M=function(e,n){var t=window.getComputedStyle(n),i="border-box"===t.boxSizing,o=function(e,n){return e.reduce((function(e,t){return e[t]=n[t],e}),{})}(e,t);j()&&i&&r("width",o)&&null!==o.width&&(o.width=O([o.width,t.paddingLeft,t.paddingRight,t.borderLeftWidth,t.borderRightWidth].map(parseFloat))+"px");j()&&i&&r("height",o)&&null!==o.height&&(o.height=O([o.height,t.paddingTop,t.paddingBottom,t.borderTopWidth,t.borderBottomWidth].map(parseFloat))+"px");return o};function N(){return new e((function(e){!function n(){document.body?e(document.body):setTimeout(n,100)}()}))}function D(e){var n=e.parentNode;n&&n.removeChild(e)}var q=function(e,n){var t=document.createElement(e);return z(n,t),t},F=function(e){return P(e).map((function(e){return e.map(encodeURIComponent).join("=")})).join("&")},H=function(e){return function(e){return e.reduce((function(e,n){return e[n[0]]=n[1],e}),{})}(e.split("&").filter(Boolean).map((function(e){return e.split("=").map((function(e){return decodeURIComponent(e.replace("+","%20"))}))})).map((function(e){return 2===e.length?e:[e[0],""]})))},B=/(?:[^:]+:\/\/)?([^/\s]+)/;var R=/[^:]+:\/\/[^(/|?)\s]+/,W=function(e){var n=e.match(R);return n&&n[0]},V=/.*?\?([^#]+)/,G=function(e){var n=e.match(V);return n?"?"+n[1]:""},U=function(e){return e.replace(/^\?/,"")},J=function(e){if(null===W(e))return H(U(e));var n=U(G(e));return n?H(n):{}},Y=/^(?:https?:)?\/\/[^/]+\/([^?#]+)/,X=function(e){var n=e.match(Y);return"/"+(n&&n[1]||"")},$=function(e){return e.replace(/\w/g,"$&[\\r\\n\\t]*")},K=(RegExp("^[\0-]*("+$("javascript")+"|"+$("data")+"):","i"),/^((http(s)?:)?\/\/)/),Q=function(e,n){if(-1===e.indexOf("?"))return e;var t=J(e);if(g(t))return e;if(Object.keys(t).every((function(e){return!n.includes(e)})))return e;n.forEach((function(e){return delete t[e]}));var r=function(e,n){if(0===Object.keys(n).length)return e;var t=W(e),r=X(e),i=G(e)?J(e):{};return""+t+r+"?"+F(L({},i,n))}(e.split("?")[0],t);return e.indexOf("#")>-1?r+"#"+e.split("#")[1]:r},Z=function(e){return function(n,t){if(0===n){if("function"!=typeof e)return t(0,(function(){})),void t(2);var r,i=!1;t(0,(function(e){i||(i=2===e)&&"function"==typeof r&&r()})),i||(r=e((function(e){i||t(1,e)}),(function(e){i||void 0===e||(i=!0,t(2,e))}),(function(){i||(i=!0,t(2))})))}}},ee=function(e){return function(n,t){var r,i;0===n&&e(0,(function(e,n){if(0===e)r=n,t(0,o);else if(1===e){var a=n;i&&i(2),a(0,(function(e,n){0===e?(i=n)(1):1===e?t(1,n):2===e&&n?(r&&r(2),t(2,n)):2===e&&(r?(i=void 0,r(1)):t(2))}))}else 2===e&&n?(i&&i(2),t(2,n)):2===e&&(i?r=void 0:t(2))}));function o(e,n){1===e&&(i||r)(1,n),2===e&&(i&&i(2),r&&r(2))}}},ne=function(e,n){return e===n};function te(e){return void 0===e&&(e=ne),function(n){return function(t,r){if(0===t){var i,o,a=!1;n(0,(function(n,t){0===n&&(o=t),1===n?a&&e(i,t)?o(1):(a=!0,i=t,r(1,t)):r(n,t)}))}}}}var re=function(e){return function(n){return function(t,r){var i;0===t&&n(0,(function(n,t){0===n?(i=t,r(n,t)):1===n?e(t)?r(n,t):i(1):r(n,t)}))}}},ie=function(e){return function(n){var t;n(0,(function(n,r){0===n&&(t=r),1===n&&e(r),1!==n&&0!==n||t(1)}))}},oe=function(e,n,t){return function(r,i){if(0===r){var o=!1,a=function(e){i(1,e)};i(0,(function(r){2===r&&(o=!0,e.removeEventListener(n,a,t))})),o||e.addEventListener(n,a,t)}}};var ae=function(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];return function(e,t){if(0===e)for(var r=n.length,i=Array(r),o=0,a=0,u=function(e){if(0!==e)for(var n=0;r>n;n++)i[n]&&i[n](e)},c=function(e){n[e](0,(function(n,c){0===n?(i[e]=c,1==++o&&t(0,u)):2===n?(i[e]=void 0,++a===r&&t(2)):t(n,c)}))},s=0;r>s;s++)c(s)}};function ue(e,n){return Z((function(t){return e.on(n,t),function(){e.off(n,t)}}))}!function(e){var n,t=e.Symbol;"function"==typeof t?t.observable?n=t.observable:(n=t("observable"),t.observable=n):n="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var ce=function(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];for(var r=n[0],i=1,o=n.length;o>i;i++)r=n[i](r);return r},se=function(e){return function(n){return function(t,r){var i;0===t&&n(0,(function(n,t){0===n?(i=t,r(0,(function(e,n){0!==e&&i(e,n)})),r(1,e)):r(n,t)}))}}},de=function(e){return function(n){return function(t,r){0===t&&n(0,(function(n,t){r(n,1===n?e(t):t)}))}}};function le(e){return function(n){return ee(de(e)(n))}}var fe=function(){};function pe(e,n){0===e&&n(0,fe)}function me(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];return function(e,t){if(0===e){var r=!1;for(t(0,(function(e){2===e&&(r=!0,n.length=0)}));0!==n.length;)t(1,n.shift());r||t(2)}}}function he(e){return function(n,t){if(0===n){var r,i,o,a=0;e(0,(function(e,n){if(0===e&&(o=n),1===e){var u=[i,n];r=u[0],i=u[1],2>++a?o(1):t(1,[r,i])}else t(e,n)}))}}}var ve=function(){},ge={};function _e(e){var n,t,r=[],i=!1,o=ge;return function(a,u){if(0===a){if(o!==ge)return u(0,ve),i&&u(1,t),void u(2,o);r.push(u);var c=function(e,t){if(2!==e)o===ge&&n(e,t);else{var i=r.indexOf(u);-1!==i&&r.splice(i,1)}};1!==r.length?(u(0,c),i&&o===ge&&u(1,t)):e(0,(function(e,a){if(0===e)return n=a,void u(0,c);1===e&&(i=!0,t=a);var s=r.slice(0);2===e&&(o=a,r=null),s.forEach((function(n){n(e,a)}))}))}}}var we=function(e){return function(n){return function(t,r){if(0===t){var i,o=0;n(0,(function(n,t){0===n?(i=t,r(n,t)):1===n&&e>o?(o++,i(1)):r(n,t)}))}}}},ye=function(e){return void 0===e&&(e={}),function(n){"function"==typeof e&&(e={next:e});var t,r=e.next,i=e.error,o=e.complete;n(0,(function(e,n){0===e&&(t=n),1===e&&r&&r(n),1!==e&&0!==e||t(1),2===e&&!n&&o&&o(),2===e&&n&&i&&i(n)}));return function(){t&&t(2)}}},be=function(e){return function(n){return function(t,r){if(0===t){var i,o=0;n(0,(function(n,t){0===n?(i=t,r(0,a)):1===n?e>o&&(o++,r(n,t),o===e&&(r(2),i(2))):r(n,t)}))}function a(n,t){e>o&&i(n,t)}}}},ke={},Ce=function(e){return function(n){return function(t,r){if(0===t){var i,o,a=!1,u=ke;n(0,(function(n,t){if(0===n)return i=t,e(0,(function(e,n){if(0!==e)return 1===e?(u=void 0,o(2),i(2),void(a&&r(2))):void(2===e&&(o=null,n&&(u=n,i(2),a&&r(e,n))));(o=n)(1)})),a=!0,r(0,(function(e,n){u===ke&&(2===e&&o&&o(2),i(e,n))})),void(u!==ke&&r(2,u));2===n&&o(2),r(n,t)}))}}}};function Ie(n){return new e((function(e,t){ye({next:e,error:t,complete:function(){var e=Error("No elements in sequence.");e.code="NO_ELEMENTS",t(e)}})(function(e){return function(n,t){if(0===n){var r,i,o=!1,a=!1;e(0,(function(e,n){return 0===e?(r=n,void t(0,(function(e,n){2===e&&(a=!0),r(e,n)}))):1===e?(o=!0,i=n,void r(1)):void(2===e&&!n&&o&&(t(1,i),a)||t(e,n))}))}}}(n))}))}var Ee=function(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}((function(e,n){function t(e,n){return e===n}function r(e,n,t){if(null===n||null===t||n.length!==t.length)return!1;for(var r=n.length,i=0;r>i;i++)if(!e(n[i],t[i]))return!1;return!0}function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=null,o=null;return function(){return r(n,i,arguments)||(o=e.apply(null,arguments)),i=arguments,o}}function o(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every((function(e){return"function"==typeof e}))){var t=n.map((function(e){return typeof e})).join(", ");throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+t+"]")}return n}function a(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;n>r;r++)t[r-1]=arguments[r];return function(){for(var n=arguments.length,r=Array(n),a=0;n>a;a++)r[a]=arguments[a];var u=0,c=r.pop(),s=o(r),d=e.apply(void 0,[function(){return u++,c.apply(null,arguments)}].concat(t)),l=i((function(){for(var e=[],n=s.length,t=0;n>t;t++)e.push(s[t].apply(null,arguments));return d.apply(null,e)}));return l.resultFunc=c,l.recomputations=function(){return u},l.resetRecomputations=function(){return u=0},l}}n.__esModule=!0,n.defaultMemoize=i,n.createSelectorCreator=a,n.createStructuredSelector=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if("object"!=typeof e)throw Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var t=Object.keys(e);return n(t.map((function(n){return e[n]})),(function(){for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return n.reduce((function(e,n,r){return e[t[r]]=n,e}),{})}))};var u=n.createSelector=a(i)})),Le=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},xe=function(){function e(){Le(this,e),this._cache={}}return e.prototype.set=function(e,n){this._cache[e]=n},e.prototype.get=function(e){return this._cache[e]},e.prototype.remove=function(e){delete this._cache[e]},e.prototype.clear=function(){this._cache={}},e}();(function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.cacheSize;if(Le(this,e),void 0===t)throw Error("Missing the required property `cacheSize`.");if(!Number.isInteger(t)||0>=t)throw Error("The `cacheSize` property must be a positive integer value.");this._cache={},this._cacheOrdering=[],this._cacheSize=t}e.prototype.set=function(e,n){(this._cache[e]=n,this._cacheOrdering.push(e),this._cacheOrdering.length>this._cacheSize)&&this.remove(this._cacheOrdering[0])},e.prototype.get=function(e){return this._cache[e]},e.prototype.remove=function(e){var n=this._cacheOrdering.indexOf(e);n>-1&&this._cacheOrdering.splice(n,1),delete this._cache[e]},e.prototype.clear=function(){this._cache={},this._cacheOrdering=[]}})(),function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.cacheSize;if(Le(this,e),void 0===t)throw Error("Missing the required property `cacheSize`.");if(!Number.isInteger(t)||0>=t)throw Error("The `cacheSize` property must be a positive integer value.");this._cache={},this._cacheOrdering=[],this._cacheSize=t}e.prototype.set=function(e,n){(this._cache[e]=n,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize)&&this.remove(this._cacheOrdering[0])},e.prototype.get=function(e){return this._registerCacheHit(e),this._cache[e]},e.prototype.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},e.prototype.clear=function(){this._cache={},this._cacheOrdering=[]},e.prototype._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},e.prototype._deleteCacheHit=function(e){var n=this._cacheOrdering.indexOf(e);n>-1&&this._cacheOrdering.splice(n,1)}}();function Ae(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];var r=xe;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0,o=void 0;"function"==typeof t?(console.warn('[re-reselect] Deprecation warning: "selectorCreator" argument is discouraged and will be removed in the upcoming major release. Please use "options.selectorCreator" instead.'),i=new r,o=t):(i=t.cacheObject||new r,o=t.selectorCreator||Ee.createSelector);var a=function(){var t=e.apply(void 0,arguments);if("string"==typeof t||"number"==typeof t){var r=i.get(t);return void 0===r&&(r=o.apply(void 0,n),i.set(t,r)),r.apply(void 0,arguments)}};return a.getMatchingSelector=function(){var n=e.apply(void 0,arguments);return i.get(n)},a.removeMatchingSelector=function(){var n=e.apply(void 0,arguments);i.remove(n)},a.clearCache=function(){i.clear()},a.resultFunc=n[n.length-1],a}}var Oe=function(e,n){return n},Te=function(e,n){return function(e){return e.entities.chats.byIds}(e)[n]},Pe=Ae([function(e,n){return Te(e,n).events.orderedIds},function(e,n){return Te(e,n).events.byIds}],(function(e,n){return e.map((function(e){return n[e]}))}))(Oe),Se=Ae([Te,Pe],(function(e,n){return L({},e,{events:n})}))(Oe),ze=function(e){return e.entities.users.byIds},je=function(e){return ze(e)[function(e){return e.session.id}(e)]},Me=function(e,n){return ze(e)[n]},Ne=function(e){return je(e).id},De=(Ae([Pe,Ne],(function(e,n){return d((function(e){return e.delivered&&e.author===n}),e)}))(Oe),Ae([Pe,Ne],(function(e,n){return d((function(e){return e.seen&&e.author===n}),e)}))(Oe),{boosters:!0,form:!0,system_message:!0});Ee.createSelector([Pe,function(e){return je(e).id}],(function(e,n){return function(e,n,t){for(var r=n;r>=0;r--)if(e(t[r]))return r;return-1}((function(e){return e.author===n&&"message"===e.type&&!(e.properties&&"file"===e.properties.serverType)||!0===e.seen&&!De[e.type]&&e.serverId}),(t=e).length-1,t);var t})),Ae([function(e,n){return Te(e,n).participants},ze],(function(e,n){return e.map((function(e){return n[e]}))}))(Oe);function qe(e,n){return void 0===n?e.application:e.application[n]}function Fe(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;o.length>r;r++)0>n.indexOf(t=o[r])&&(i[t]=e[t]);return i}var He="application/x-postmate-v1+json",Be=0,Re={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},We=function(e,n){return("string"!=typeof n||e.origin===n)&&(!!e.data&&("object"==typeof e.data&&("postmate"in e.data&&(e.data.type===He&&!!Re[e.data.postmate]))))},Ve=function(){function e(e){var n=this;this.parent=e.parent,this.frame=e.frame,this.child=e.child,this.childOrigin=e.childOrigin,this.events={},this.listener=function(e){if(!We(e,n.childOrigin))return!1;var t=((e||{}).data||{}).value||{},r=t.name;"emit"===e.data.postmate&&r in n.events&&n.events[r].call(n,t.data)},this.parent.addEventListener("message",this.listener,!1)}var n=e.prototype;return n.get=function(e){var n=this;return new Ue.Promise((function(t){var r=++Be;n.parent.addEventListener("message",(function e(i){i.data.uid===r&&"reply"===i.data.postmate&&(n.parent.removeEventListener("message",e,!1),t(i.data.value))}),!1),n.child.postMessage({postmate:"request",type:He,property:e,uid:r},n.childOrigin)}))},n.call=function(e,n){this.child.postMessage({postmate:"call",type:He,property:e,data:n},this.childOrigin)},n.on=function(e,n){this.events[e]=n},n.destroy=function(){window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)},e}(),Ge=function(){function e(e){var n=this;this.model=e.model,this.parent=e.parent,this.parentOrigin=e.parentOrigin,this.child=e.child,this.child.addEventListener("message",(function(e){if(We(e,n.parentOrigin)){var t=e.data,r=t.property,i=t.uid,o=t.data;"call"!==e.data.postmate?function(e,n){var t="function"==typeof e[n]?e[n]():e[n];return Ue.Promise.resolve(t)}(n.model,r).then((function(n){return e.source.postMessage({property:r,postmate:"reply",type:He,uid:i,value:n},e.origin)})):r in n.model&&"function"==typeof n.model[r]&&n.model[r].call(n,o)}}))}return e.prototype.emit=function(e,n){this.parent.postMessage({postmate:"emit",type:He,value:{name:e,data:n}},this.parentOrigin)},e}(),Ue=function(){function e(e){var n=e.container,t=void 0===n?void 0!==t?t:document.body:n,r=e.model,i=e.url,o=e.iframeAllowedProperties;return this.parent=window,this.frame=document.createElement("iframe"),o&&(this.frame.allow=o),t.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=r||{},this.sendHandshake(i)}return e.prototype.sendHandshake=function(n){var t,r=this,i=function(e){var n=document.createElement("a");n.href=e;var t=n.protocol.length>4?n.protocol:window.location.protocol,r=n.host.length?"80"===n.port||"443"===n.port?n.hostname:n.host:window.location.host;return n.origin||t+"//"+r}(n),o=0;return new e.Promise((function(e,a){r.parent.addEventListener("message",(function n(o){return!!We(o,i)&&("handshake-reply"===o.data.postmate?(clearInterval(t),r.parent.removeEventListener("message",n,!1),r.childOrigin=o.origin,e(new Ve(r))):a("Failed handshake"))}),!1);var u=function(){o++,r.child.postMessage({postmate:"handshake",type:He,model:r.model},i),5===o&&clearInterval(t)},c=function(){u(),t=setInterval(u,500)};r.frame.attachEvent?r.frame.attachEvent("onload",c):r.frame.addEventListener("load",c),r.frame.src=n}))},e}();Ue.debug=!1,Ue.Promise=function(){try{return window?window.Promise:e}catch(e){return null}}(),Ue.Model=function(){function e(e){return this.child=window,this.model=e,this.parent=this.child.parent,this.sendHandshakeReply()}return e.prototype.sendHandshakeReply=function(){var e=this;return new Ue.Promise((function(n,t){e.child.addEventListener("message",(function r(i){if(i.data.postmate){if("handshake"===i.data.postmate){e.child.removeEventListener("message",r,!1),i.source.postMessage({postmate:"handshake-reply",type:He},i.origin),e.parentOrigin=i.origin;var o=i.data.model;return o&&Object.keys(o).forEach((function(n){e.model[n]=o[n]})),n(new Ge(e))}return t("Handshake Reply Failed")}}),!1)}))},e}();var Je=function(){var e,n={all:e=e||new Map,on:function(n,t){var r=e.get(n);r?r.push(t):e.set(n,[t])},off:function(n,t){var r=e.get(n);r&&(t?r.splice(r.indexOf(t)>>>0,1):e.set(n,[]))},emit:function(n,t){var r=e.get(n);r&&r.slice().map((function(e){e(t)})),(r=e.get("*"))&&r.slice().map((function(e){e(n,t)}))}},t=n.all,r=Fe(n,["all"]);return L({},r,{off:function(e,n){e?r.off(e,n):t.clear()},once:function(e,n){r.on(e,(function t(i,o){r.off(e,t),n(i,o)}))}})};Ue.Promise=e;var Ye=function(n){var t=n.methods,r=Fe(n,["methods"]);return new Ue(r).then((function(n){var r=n.on,o=n.call,a=function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return o.apply(n,t)},u=Je(),c={},s={};return t.resolveRemoteCall=function(e){var n=e.id,t=e.value,r=s[n];delete s[n],r(t)},n.on=function(e,t){u.on(e,t),c[e]||(c[e]=!0,function(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];r.apply(n,t)}(e,(function(n){u.emit(e,n)})))},n.off=u.off,n.on("remote-call",(function(e){var r=e.id,i=e.method,o="function"==typeof t[i]?t[i].apply(n,e.args):void 0;o&&"function"==typeof o.then?o.then((function(e){a("resolveRemoteCall",{id:r,value:e})})):a("resolveRemoteCall",{id:r,value:o})})),n.emit=function(e,n){a("emitEvent",{event:e,data:n})},n._emit=u.emit,n.call=function(n){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;t>i;i++)r[i-1]=arguments[i];return new e((function(e){var t=m(s);s[t]=e,a("remoteCall",{id:t,method:n,args:r})}))},i(n,t)}))};function Xe(e,n){return null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?$e(n,e):e}function $e(e,n){var t;if(Array.isArray(e)){t=e.slice(0,n.length);for(var i=0;n.length>i;i++)void 0!==n[i]&&(t[i]=Xe(n[i],t[i]))}else for(var o in t=L({},e),n)r(o,n)&&(void 0===n[o]?delete t[o]:t[o]=Xe(n[o],t[o]));return t}var Ke=function(n){return new e((function(e){n.on("state",(function t(r){n.off("state",t),n.state=r,e(r)})),n.on("state_diff",(function(e){n.state=$e(n.state,e)})),n.on("store_event",(function(e){n._emit(e[0],e[1])})),n.call("startStateSync")}))},Qe="chat-widget",Ze="chat-widget-minimized",en={opacity:0,visibility:"hidden",zIndex:-1},nn={opacity:1,visibility:"visible",zIndex:2147483639},tn={id:Qe+"-container",style:L({},en,{position:"fixed",bottom:0,width:0,height:0,maxWidth:"100%",maxHeight:"100%",minHeight:0,minWidth:0,backgroundColor:"transparent",border:0,overflow:"hidden"})},rn=(L({},tn.style),{id:"livechat-eye-catcher",style:{position:"fixed",visibility:"visible",zIndex:2147483639,background:"transparent",border:0,padding:"10px 10px 0 0",float:"left",marginRight:"-10px",webkitBackfaceVisibility:"hidden"}}),on={style:{position:"absolute",display:"none",top:"-5px",right:"-5px",width:"16px",lineHeight:"16px",textAlign:"center",cursor:"pointer",textDecoration:"none",color:"#000",fontSize:"20px",fontFamily:"Arial, sans-serif",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.5)"}},an={id:"livechat-eye-catcher-img",style:{display:"block",overflow:"hidden",cursor:"pointer"}},un={alt:"",style:{display:"block",border:0,float:"right"}},cn={position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px"},sn={allowtransparency:!0,id:Qe,name:Qe,title:"LiveChat chat widget",scrolling:"no",style:{width:"100%",height:"100%","min-height":"0px","min-width":"0px",margin:"0px",padding:"0px","background-image":"none","background-position-x":"0%","background-position-y":"0%","background-size":"initial","background-attachment":"scroll","background-origin":"initial","background-clip":"initial","background-color":"rgba(0, 0, 0, 0)","border-width":"0px",float:"none"}},dn=L({},sn,{id:Ze,name:Ze}),ln=e.resolve(),fn=function(e){ln.then(e)},pn=function(e){return fn((function(){throw e}))},mn=function(e){return function(n){var t=window.LC_API||{};if("function"==typeof n&&n(t),"function"==typeof t[e])try{t[e]()}catch(e){pn(e)}}},hn=function(e,n){if(!e)return!0;var t=function(e){var n=e.match(B);return n&&n[1]}(n);return!!t&&[].concat(e,["livechatinc.com","lc.chat"]).some((function(e){var n=t.length-e.length;return-1!==t.indexOf(e,n)&&(t.length===e.length||"."===t.charAt(n-1))}))},vn=[],gn=function(e){30>vn.length||(vn=vn.slice(1));for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;n>r;r++)t[r-1]=arguments[r];vn.push({name:e,args:t})},_n="always visible",wn="always hide",yn="hide until it gets activated";function bn(e,n,t){return function(r){var i,o=(void 0===r?{}:r).prettyPrint,a=void 0===o||o,u=n.analytics.googleAnalytics.trackerName,c=!hn(t.allowedDomains,document.location.href),s=[["window.open",!/native code/.test(window.open)],["document.domain",window.location.hostname!==document.domain],["window.frames",window.frames!==window],["JSON.stringify",!/native code/.test(window.JSON.stringify)],["JSON.parse",!/native code/.test(window.JSON.parse)],["Object.keys",!/native code/.test(Object.keys)],["console.log",!/native code/.test(console.log)]].filter((function(e){return e[1]})).map((function(e){return e[0]})),d=function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}(sn.style).some((function(n){return e.frame.style.getPropertyValue(n)!==sn.style[n]})),l=function(e){var n="";return{desktopVisibility:n=e.initiallyHidden?e.disabledMinimized?wn:yn:_n,mobileVisibility:e.hasCustomMobileSettings?e.hiddenOnMobile?wn:e.initiallyHiddenOnMobile?e.disabledMinimizedOnMobile?wn:yn:_n:n}}(t.__unsafeProperties.group),f=l.desktopVisibility,p=l.mobileVisibility,m=[{msg:"language: "+t.__unsafeProperties.group.language},{msg:"region: "+t.region},{msg:"license number: "+window.__lc.license},{msg:"group id: "+e.state.application.group},{msg:"hidden: "+(e.state.application.hidden?"yes":"no")},{msg:"tracker name: "+u},{msg:"desktop visibility: "+f,isNotStandard:f!==_n},{msg:"mobile visibility: "+p,isNotStandard:p!==_n},{msg:"chat between groups: "+(window.__lc.chat_between_groups?"yes":"no")},{msg:"is iframe inline style modified: "+(d?"yes":"no"),isNotStandard:d},{msg:"is current domain not allowed by the allowed domains: "+(c?"yes":"no"),isNotStandard:c},{msg:"overrides: "+(s.length>0?s.join(",\n"):"none"),isNotStandard:s.length>0},{msg:"call history: "+(vn.length>0?vn.map((function(e){return e.name+"("+e.args.join(", ")+")"})).join(",\n"):"none"),isNotStandard:vn.length>0}];if(!a)return m;var h=m.filter((function(e){return e.isNotStandard})),v=m.filter((function(e){return!e.isNotStandard})),g=[].concat(h,v);return-1!==s.indexOf("console.log")?g.map((function(e){return e.msg})).join("\n\n"):((i=console).log.apply(i,[g.map((function(e){return"%c"+e.msg})).join("\n\n")].concat(g.map((function(e){return e.isNotStandard?"color: red;":""})))),"")}}function kn(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;n>r;r++)t[r-1]=arguments[r];return function(){"function"==typeof e&&e.apply(void 0,t)}}function Cn(e,n,t){return ce(ue(e,t),ie((function(e){return fn(kn(n[t],e))})))}function In(e){return C(e.filter(Boolean).map((function(e){var n;return(n={})[e.name]=e.value+"",n})))}function En(e,n){var t,i=s((function(e){return!e[1]}),P((t=n,["name","email"].reduce((function(e,n){return r(n,t)&&(e[n]=t[n]),e}),{}))));if(i){var o=i[1];console.error("[LiveChatWidget] Customer "+i[0]+" cannot be set to "+(""===o?"empty string":o))}else e.call("storeMethod",["requestUpdateUser",Ne(e.state),n])}function Ln(e,n){e.call("storeMethod",["requestSetUserProperties",Ne(e.state),n])}function xn(e){return null!=e?e+"":null}var An=function(e,n){return qe(e,"visibility").state===n};function On(e,n){return ee((t=function(){return ce(ue(e,"state_diff"),de((function(){return e.state})),se(e.state),de(n),te(A),Ce(ue(e,"unbind")))},function(e,n){if(0===e){var r=!1;n(0,(function(e){2===e&&(r=!0)})),n(1,t()),r||n(2)}}));var t}var Tn=function(e,n){return ce(On(e,n),we(1))};function Pn(e){return ce(On(e,(function(e){return qe(e,"availability")})),re(w))}var Sn="liveChatChatId";function zn(e){return ce(On(e,(function(e){return Se(e,Sn).active})),we(1),le((function(n){return n?ce(On(e,(function(e){return Se(e,Sn).properties.currentAgent})),re(Boolean),de((function(){return n})),be(1)):me(n)})))}function jn(e,n){return ce(ue(e,"state_diff"),de((function(){return qe(e.state,"readyState")})),re((function(e){return e===n})),be(1),_e)}var Mn="not_ready",Nn="ready",Dn="bootstrapped",qn=Object.freeze({__proto__:null,FRA_A:"fra-a",FRA_B:"fra-b",FRA:"fra",DAL:"dal"});function Fn(e,n){return ce(jn(e,Nn),le(n))}function Hn(e,n){return ce(jn(e,Dn),le(n))}function Bn(e,n){return ce(On(e,(function(e){return qe(e,"invitation")})),de((function(e){return e[n]})),re(w),he,re((function(e){return e[1].length>e[0].length})),de((function(e){return y(e[1])})))}var Rn=function(e){return e.actingAsDirectLink||e.isInCustomContainer},Wn="liveChatChatId",Vn=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;n>r;r++)t[r-1]=arguments[r];return fn(kn.apply(void 0,[e].concat(t)))};function Gn(e,n,t){window.LC_API=window.LC_API||{};var r=window.LC_API;ce(function(e){return ce(On(e,(function(e){return An(e,"maximized")})),re(w))}(e),ie((function(){return Vn(r.on_chat_window_opened)}))),ce(Hn(e,(function(){return function(e){return ce(On(e,(function(e){return An(e,"minimized")})),we(1),re(w))}(e)})),ie((function(){return Vn(r.on_chat_window_minimized)}))),ce(function(e){return ce(On(e,(function(e){return An(e,"hidden")})),re(w))}(e),ie((function(){return Vn(r.on_chat_window_hidden)}))),ce(Pn(e),ie((function(e){return Vn(r.on_chat_state_changed,{state:"online"===e?"online_for_chat":"offline"})}))),ce(Hn(e,(function(){return zn(e)})),re(w),ie((function(){return Vn(r.on_chat_started,{agent_name:Me(e.state,Se(e.state,Wn).properties.currentAgent).name})}))),ce(Hn(e,(function(){return zn(e)})),re(_),ie((function(){return Vn(r.on_chat_ended)}))),ce(Hn(e,(function(){return ue(e,"on_message")})),ie((function(e){return Vn(r.on_message,e)}))),ce(ue(e,"widget_resize"),ie((function(e){return Vn(r.on_widget_resize,e.size)}))),ce(function(e){return ce(ue(e,"add_event"),re((function(e){return e.event.properties.invitation})),de((function(n){var t=n.event;return{event:t,author:Me(e.state,t.author)}})))}(e),ie((function(e){var n=e.author,t=e.event,i=t.properties;Vn(r.on_message,{text:i.text,timestamp:t.timestamp,invitation:!0,user_type:"agent",agent_login:n.id,agent_name:n.name,received_first_time:i.receivedFirstTime})}))),Cn(e,r,"on_postchat_survey_submitted"),Cn(e,r,"on_prechat_survey_submitted"),Cn(e,r,"on_rating_comment_submitted"),Cn(e,r,"on_rating_submitted"),Cn(e,r,"on_ticket_created"),r.set_custom_variables=function(n){gn("LC_API.set_custom_variables",n),Ln(e,In(n))},r.update_custom_variables=function(n){gn("LC_API.update_custom_variables",n),En(e,{properties:In(n)})},r.set_visitor_name=function(n){gn("LC_API.set_visitor_name",n),En(e,{name:xn(n)})},r.set_visitor_email=function(n){gn("LC_API.set_visitor_email",n),En(e,{email:xn(n)})},r.open_chat_window=r.show_full_view=r.open_mobile_window=function(){gn("LC_API.open_chat_window"),e.maximize()},r.minimize_chat_window=function(){gn("LC_API.minimize_chat_window"),Rn(n)||e.minimize()},r.hide_eye_catcher=function(){gn("LC_API.hide_eye_catcher"),e.call("hideEyeCatcher")},r.hide_chat_window=function(){gn("LC_API.hide_chat_window"),Rn(n)||e.hide()},r.agents_are_available=function(){return gn("LC_API.agents_are_available"),"online"===qe(e.state,"availability")},r.chat_window_maximized=function(){return gn("LC_API.chat_window_maximized"),An(e.state,"maximized")},r.chat_window_minimized=function(){return gn("LC_API.chat_window_minimized"),An(e.state,"minimized")},r.chat_window_hidden=function(){return gn("LC_API.chat_window_hidden"),An(e.state,"hidden")},r.visitor_queued=function(){return gn("LC_API.visitor_queued"),Se(e.state,Wn).properties.queued},r.chat_running=function(){return gn("LC_API.chat_running"),Se(e.state,Wn).active},r.visitor_engaged=function(){return gn("LC_API.visitor_engaged"),r.visitor_queued()||r.chat_running()||!!Se(e.state,Wn).properties.fakeAgentMessageId},r.get_window_type=function(){return gn("LC_API.get_window_type"),"embedded"},r.close_chat=function(){gn("LC_API.close_chat"),e.call("storeMethod",["requestUpdateChat",Wn,{active:!1}])},r.diagnose=bn(e,n,t),r.get_last_visit_timestamp=function(){return qe(e.state).clientLastVisitTimestamp},r.get_visits_number=function(){return qe(e.state).clientVisitNumber},r.get_page_views_number=function(){return qe(e.state).clientPageViewsCount},r.get_chats_number=function(){return qe(e.state).clientChatNumber},r.get_visitor_id=function(){return je(e.state).serverId},r.get_chat_id=function(){return Se(e.state,Wn).serverId},r.trigger_sales_tracker=function(e,n){var t=o(n)?n:[];"string"==typeof e&&""!==e&&r.set_custom_variables([].concat(t,[{name:"__sales_tracker_"+e,value:"1"}]))},r.scriptTagVersion=function(){return"LiveChatWidget"in window?window.LiveChatWidget._v:"1.0"},["on","off","call","get"].forEach((function(e){r[e]=function(){var n="LiveChatWidget"in window?'call it on the new "LiveChatWidget" global object.':"upgrade your snippet code. You can do it by going to: https://my.livechatinc.com/settings/code";console.warn('[LiveChatWidget] In order to use "'+e+'" function you need to '+n)}})),r.disable_sounds=E}var Un={handler:null,setHandler:function(e){this.handler=e},navigate:function(e){var n=this;fn((function(){window.location.origin===W(e)&&"function"==typeof n.handler?n.handler(X(e)):window.open(e,"_blank")}))}},Jn="liveChatChatId",Yn=function(e){var n,t=e.trackerId,r=e.variables;return L({},u(String,void 0===r?{}:r),((n={})["__sales_tracker_"+t]="1",n))},Xn=function(e){var n=e.id;return L({uniqueId:e.uniqueId},n&&{id:n})},$n=function(e,n){return h(null,"properties",d((function(e){return e.properties.uniqueId===n}),Pe(e.state,Jn)))},Kn=function(e){return n=function(e){if("call"!==e[0])return"other";switch(e[1][0]){case"set_customer_email":return"email";case"set_customer_name":return"name";case"set_session_variables":case"trigger_sales_tracker":case"update_session_variables":return"fields";case"destroy":case"hide":case"maximize":case"minimize":return"visibility"}},Object.keys(t=e).reduce((function(e,r){var i=t[r],o=n(i);return e[o]=e[o]||[],e[o].push(i),e}),{});var n,t};function Qn(e,n,t){var r,i=Je(),o=window.LiveChatWidget,a=function(e,n){var t;return(t={get:_,call:b,on:m,once:h,off:i.off})[e].apply(t,n)},d=function(e,n){return fn((function(){return i.emit(e,n)}))},l=function(e){void 0===e&&(e=[]);var n=y(e);if(n){var t=n[1];b(t[0],t[1])}},f=Kn(o._q);function p(n,t,r){switch(t){case"new_event":case"form_submitted":case"greeting_hidden":case"rating_submitted":case"visibility_changed":case"greeting_displayed":case"availability_changed":case"customer_status_changed":case"rich_message_button_clicked":return void i[n](t,r);case"ready":return void(qe(e.state,"readyState")!==Mn?fn((function(){return r({state:g("state"),customerData:g("customer_data")})})):i[n](t,r));default:return void console.error('[LiveChatWidget] callback "'+t+'" does not exist.')}}function m(e,n){gn("LiveChatWidget.on","'"+e+"'",n),p("on",e,n)}function h(e,n){gn("LiveChatWidget.once","'"+e+"'",n),p("once",e,n)}function g(n){switch(n){case"state":var t=qe(e.state);return{availability:t.availability,visibility:t.visibility.state};case"chat_data":var r=Se(e.state,Jn),i=r.properties;return{chatId:r.serverId||null,threadId:(r.active||i.ended)&&i.lastThread||null};case"customer_data":var o=je(e.state),a=o.serverId,u=o.name,d=o.email,l=o.properties,f=qe(e.state).isReturning,p=Se(e.state,Jn),m=p.active,h=p.properties,v=h.queued,g=h.fakeAgentMessageId,_=s((function(e){return e.id===g}),p.events);return{name:u,email:d,isReturning:f,sessionVariables:l,id:a,status:v?"queued":m?"chatting":_&&_.properties.invitation?"invited":"browsing"};case"features":return c(qe(e.state).config.features);default:return void console.error('[LiveChatWidget] property "'+n+'" not exists.')}}function _(e){return gn("LiveChatWidget.get","'"+e+"'"),g(e)}function b(t,r){switch(gn.apply(void 0,["LiveChatWidget.call","'"+t+"'"].concat(r)),t){case"hide":case"maximize":case"minimize":if(Rn(n))return;return void e[t](r);case"destroy":return e.kill(),delete window.__lc_inited,delete window.LC_API,void delete window.LiveChatWidget;case"set_session_variables":return void Ln(e,u(String,r));case"set_customer_name":return void En(e,{name:xn(r)});case"set_customer_email":return void En(e,{email:xn(r)});case"update_session_variables":return void En(e,{properties:u(String,r)});case"trigger_sales_tracker":return void Ln(e,Yn(r));case"hide_greeting":return void e.call("hideGreeting");case"set_navigation_handler":return void Un.setHandler(r);default:return void console.error('[LiveChatWidget] method "'+t+'" not exists.')}}void 0===(r=f.other)&&(r=[]),r.forEach((function(e){a(e[0],e[1])})),l(f.visibility),l(f.name),l(f.email),function(e){var n,t=(void 0===(n=e)&&(n=[]),n.reduce((function(e,n){var t=n[1],r=t[1];switch(t[0]){case"set_session_variables":return e.mode="set",e.properties=r,e;case"trigger_sales_tracker":return e.mode="set",e.properties=Yn(r),e;case"update_session_variables":return"none"===e.mode&&(e.mode="update"),e.properties=L({},e.properties,r),e}}),{mode:"none"})),r=t.mode;"none"!==r&&b(r+"_session_variables",t.properties)}(f.fields),o._q=[],o._h=a,o.scriptTagVersion=function(){return o._v},o.diagnose=bn(e,n,t),ce(jn(e,Dn),ie((function(){var e;e=function(e){return"function"==typeof e&&fn((function(){return e(o)}))},Array.isArray(window.__lc_onready)&&(window.__lc_onready.forEach(e),window.__lc_onready={push:e}),d("ready",{state:g("state"),customerData:g("customer_data")})}))),ce(Hn(e,(function(){return Pn(e)})),ie((function(e){return d("availability_changed",{availability:e})}))),ce(Hn(e,(function(){return Tn(e,(function(){return g("state").visibility}))})),ie((function(e){d("visibility_changed",{visibility:e})}))),ce(Hn(e,(function(){return Tn(e,(function(){return g("customer_data").status}))})),ie((function(e){return d("customer_status_changed",{status:e})}))),ce(Hn(e,(function(){return Bn(e,"hiddenIds")})),de((function(n){return $n(e,n)})),re(w),ie((function(e){return d("greeting_hidden",Xn(e))}))),ce(Hn(e,(function(){return Bn(e,"displayedIds")})),de((function(n){return $n(e,n)})),re(w),ie((function(e){return d("greeting_displayed",Xn(e))}))),ce(ue(e,"on_rating_submitted"),ie((function(e){return d("rating_submitted",e)}))),ce(ae(ue(e,"add_event"),ue(e,"send_event")),re((function(e){return v(e.event.type,["message","emoji","rich_message","file"])})),de((function(n){var t=n.event,r=t.timestamp,i=t.properties,o=Me(e.state,t.author),a=!0===i.invitation;return L({timestamp:r,type:t.type,author:{id:o.serverId,type:o.id===Ne(e.state)?"customer":"agent"}},a&&{greeting:Xn(i)})})),ie((function(e){return d("new_event",e)}))),ce(ae(ce(ue(e,"send_event"),de((function(e){var n=e.event,t=n.type,r=n.properties;if("rich_message_postback"===t)return{postbackId:"postback"in r?r.postback.id:r.id,eventId:r.eventId};if("message"===t&&r.triggeredBy){var i=r.triggeredBy;return{postbackId:i.button.postbackId,eventId:i.event}}return null})),re(w)),ce(ue(e,"rich_greeting_button_clicked"),de((function(e){var n=e.event;return{eventId:n.id,postbackId:e.button.postbackId,greeting:Xn(n.properties)}})))),ie((function(e){return d("rich_message_button_clicked",e)}))),ce(ae(ce(ue(e,"on_ticket_created"),de((function(){return"ticket"}))),ce(ue(e,"on_prechat_survey_submitted"),de((function(){return"prechat"}))),ce(ue(e,"on_postchat_survey_submitted"),de((function(){return"postchat"})))),ie((function(e){return d("form_submitted",{type:e})})))}var Zn=function(){return window.GoogleAnalyticsObject||"ga"},et=function(e){var n=e.event,t=e.label,r=e.nonInteraction,i=e.trackerName,o=window[Zn()];o&&"function"==typeof o&&o([i,"send"].filter(Boolean).join("."),{hitType:"event",eventCategory:"LiveChat",eventAction:n,eventLabel:t,nonInteraction:r})},nt={ga:et,gaAll:function(e){var n=window[Zn()];if(n&&"function"==typeof n.getAll){var t=n.getAll();o(t)&&t.forEach((function(n){et(L({},e,{trackerName:n&&"function"==typeof n.get?n.get("name"):null}))}))}},gaq:function(e){var n=window._gaq;n&&"function"==typeof n.push&&n.push(["_trackEvent","LiveChat",e.event,e.label,null,e.nonInteraction])},gtm:function(e){var n=window.dataLayer;n&&"function"==typeof n.push&&n.push({event:"LiveChat",eventCategory:"LiveChat",eventAction:e.event,eventLabel:e.label,nonInteraction:e.nonInteraction})},pageTracker:function(e){var n=window.pageTracker;n&&"function"==typeof n._trackEvent&&n._trackEvent("LiveChat",e.event,e.label,null,e.nonInteraction)},urchinTracker:function(e){var n=window.urchinTracker;n&&"function"==typeof n&&n(e.event)},gtag:function(e){var n=window.gtag;n&&"function"==typeof n&&n("event",e.event,{event_category:"LiveChat",event_label:e.label,non_interaction:e.nonInteraction})}},tt=function(e){var n=e.version,t=e.sendToAll;if(n&&"function"==typeof nt[n])return t&&"ga"===n?"gaAll":n;if("object"==typeof window.pageTracker&&"function"==typeof window.pageTracker._trackEvent)return"pageTracker";if("function"==typeof window.urchinTracker)return"urchinTracker";if("function"==typeof window.gtag)return"gtag";if(!e.omitGtm&&"object"==typeof window.dataLayer&&"function"==typeof window.dataLayer.push)return"gtm";if("object"==typeof window._gaq)return"gaq";if(window.GoogleAnalyticsObject&&"string"==typeof window.GoogleAnalyticsObject)return t?"gaAll":"ga";if("function"==typeof window.ga){var r=!1;if(window.ga((function(e){r="object"==typeof e})),r)return t?"gaAll":"ga"}return null},rt={Chat:"LiveChat Chat started","Automated greeting":"LiveChat Automated greeting displayed","Ticket form":"LiveChat Ticket form displayed","Ticket form filled in":"LiveChat Ticket form filled in","Pre-chat survey":"LiveChat Pre-chat survey displayed","Pre-chat survey filled in":"LiveChat Pre-chat survey filled in","Post-chat survey":"LiveChat Post-chat survey displayed","Post-chat survey filled in":"LiveChat Post-chat survey filled in"},it=function(){return window.mixpanel&&"function"==typeof window.mixpanel.track&&"function"==typeof window.mixpanel.register},ot={googleAnalytics:function(e){var n=e.trackerName;return n?nt[n]:null},kissmetrics:function(){return null},mixpanel:function(){if(!it())return null;return function(e){var n=e.event,t=e.eventData,r=e.persistentData;if(it()){var i=window.mixpanel;r&&(i.register(r),!it())||n in rt&&i.track(rt[n],t)}}}},at=function(e,n){var t=n.analytics,r=Object.keys(t).filter((function(e){return t[e].enabled})).map((function(e){var n=t[e],r=ot[e];try{return r(n)}catch(e){return pn(e),null}})).filter(Boolean);if(0!==r.length){var i=function(n,t){var i=void 0===t?{}:t,o=i.group,a=void 0===o?qe(e.state,"group"):o,u=i.nonInteraction,c=void 0!==u&&u,s=i.eventData,d=void 0===s?{}:s,l=i.persistentData,f=void 0===l?null:l,p=i.useDataAsLabel,m=0!==a?"Group ID: "+a:"(no group)",h=void 0!==p&&p?P(d).map((function(e){return e[0]+": "+e[1]})).join(", "):m;r.forEach((function(e){try{e({event:n,nonInteraction:c,label:h,eventData:L({},d,{group:m}),persistentData:f})}catch(e){pn(e)}}))};ce(On(e,(function(e){return qe(e,"readyState")})),re((function(e){return e===Nn})),be(1),le((function(){return zn(e)})),re(Boolean),ie((function(){var n=je(e.state);i("Chat",{eventData:{email:n.email,name:n.name},persistentData:{"performed chat":!0}})}))),e.on("add_event",(function(e){var n=e.event.properties;n.invitation&&n.receivedFirstTime&&i("Automated greeting",{nonInteraction:!0})})),e.on("on_chat_booster_launched",(function(e){var n=e.title;i("Chat Booster Launched: "+n,{eventData:{appId:e.id,title:n}})})),e.on("on_prechat_survey_submitted",(function(){i("Pre-chat survey filled in")})),e.on("on_postchat_survey_submitted",(function(){i("Post-chat survey filled in")})),e.on("on_ticket_created",(function(e){i("Ticket form filled in",{eventData:{email:e.visitor_email}})})),e.on("rich_greeting_button_clicked",(function(e){i("Rich greeting button clicked",{eventData:{buttonText:e.button.text,greetingId:e.event.properties.id},useDataAsLabel:!0})})),["prechat","postchat","ticket","offline"].forEach((function(n){var t;ce(ae(ue(e,"set_default_view"),ue(e,"set_current_view")),re((function(e){return e.viewInfo&&"Chat"===e.viewInfo.view&&e.viewInfo.default===n})),Ce(ue(e,"unbind")),(t=function(){var t,r,i,o,a={prechat:["on_prechat_survey_submitted","Pre-chat survey"],postchat:["on_postchat_survey_submitted","Post-chat survey"],ticket:["on_ticket_created","Ticket form"],offline:["on_ticket_created","Ticket form"]}[n],u=a[0];return ce(function(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];return function(e,t){if(0===e){var r=n.length;if(0===r)return t(0,(function(){})),void t(2);var i,o=0,a=function(e,n){i(e,n)};!function e(){o!==r?n[o](0,(function(n,r){0===n?(i=r,0===o?t(0,a):i(1)):2===n&&r?t(2,r):2===n?(o++,e()):t(n,r)})):t(2)}()}}}(me(a[1]),pe),(t=ce(On(e,(function(e){return An(e,"maximized")})),re(Boolean)),o=void 0===(i=(void 0===r?{}:r).size)?100:i,function(e){return function(n,r){var i=[];if(0===n){var a,u,c=!1;e(0,(function(e,n){if(0===e&&(a=n,t(0,(function(e,n){if(0===e)(u=n)(1);else if(1===e){c=!0,u(2);var t=i.slice();i.length=0,t.forEach((function(e){return r(1,e)}))}}))),1===e)return c?void r(1,n):(i.push(n),i.length>o&&i.shift(),void a(1));r(e,n)}))}}}),Ce(ue(e,u)))},function(e){return function(n,r){if(0===n){var i,o=null,a=function(e,n){if(0!==e)return 1===e?(r(1,n),void o(1)):void(2===e&&(o=null));(o=n)(1)},u=function(e,n){2===e&&null!==o&&o(2,n),i(e,n)};e(0,(function(e,n){if(0===e)return i=n,void r(0,u);if(1!==e){if(2===e){if(r(2,n),null===o)return;o(2,n)}}else{if(null!==o)return;t(n)(0,a)}}))}}}),ie((function(e){i(e)})))}))}},ut=/\.(\w+)$/i,ct=new Audio,st={mp3:"audio/mpeg",ogg:"audio/ogg"},dt=function(e){var n,t=(n=e.match(ut))?n[1].toLowerCase():"";return t in st&&""!==ct.canPlayType(st[t])},lt=function(n){return new e((function(e,t){var r=new Audio(n);r.onloadeddata=function(){e(r)},r.onerror=t}))},ft=function(n){var t,r=n.play();return(t=r)&&"function"==typeof t.then?r:e.resolve()},pt=function(e){return"function"==typeof e.start&&"function"==typeof e.stop},mt=function(e){pt(e)?e.start(0):e.noteOn(0)},ht=function(){var n=new(window.AudioContext||window.webkitAudioContext),t=!0,r=[],i=function(t){return new e((function(e,r){n.decodeAudioData(t,e,r)}))},o=function(t){return{play:function(){var r=n.createBufferSource();return r.connect(n.destination),r.buffer=t,{playback:new e((function(e,t){if(r.onended=function(){return e()},mt(r),"running"!==n.state){var i=Error("Playback failed, AudioContext is in incorrect state '"+n.state+"'");i.name="PlaybackError",t(i)}})),stop:function(){!function(e){pt(e)?e.stop(0):e.noteOff(0)}(r)}}}}};return{preload:function(n){return function(n){return new e((function(e,t){var r=new XMLHttpRequest;r.onload=function(){e(r.response)},r.onerror=t,r.open("GET",n),r.responseType="arraybuffer",r.send()}))}(n).then(i).then(o)},playSound:function(e){var n=e.play();return t&&r.push(n),n.playback},unlock:function(){return new e((function(e){document.addEventListener("click",(function i(){var o,a;document.removeEventListener("click",i,!0),t&&(r.forEach((function(e){e.stop()})),r=[],t=!1),n.resume(),o=n.createBuffer(1,1,22050),(a=n.createBufferSource()).buffer=o,a.connect(n.destination),mt(a),e()}),!0)}))}}},vt=function(){return"function"==typeof window.webkitAudioContext?(n=ht(),{play:function(e){var r=t(e).then(n.playSound);return r.catch(E),r},preload:t=I((function(e){var t=n.preload(e);return t.catch(E),t})),unlock:function(){return n.unlock()}}):function(){var n=I(lt);return{play:function(e){return n(e).then(ft)},preload:n,unlock:function(){return e.resolve()}}}();var n,t},gt=function(e){return Object.keys(e).reduce((function(n,t){var r,i=s((function(e){return dt(e)}),o(r=e[t])?r:[r]);return n[t]=i,n}),{})},_t="new_message",wt=function(){var e,n,t,r,i=((e={}).new_message=["https://cdn.livechatinc.com/widget/static/media/new_message.34190d36.ogg","https://cdn.livechatinc.com/widget/static/media/new_message.f3efb3d2.mp3"],n=e,t=vt(),r=gt(n),{play:function(e){t.play(r[e]).then(E,E)},preload:function(e){t.preload(r[e]).then(E,E)},unlock:function(){return t.unlock()}});return i.unlock().then((function(){return e=2e3,n=function(e){i.play(e)},t=0,function(){var r=Date.now();e>r-t||(t=Date.now(),n.apply(void 0,arguments))};var e,n,t}))},yt=function(e,n){return void 0===n&&(n=!1),n&&e.__unsafeProperties.group.hasCustomMobileSettings},bt=function(e,n){var t=e.__unsafeProperties.group;return yt(e,n)?t.screenPositionOnMobile:t.screenPosition},kt=function(e,n){var t=e.__unsafeProperties.group;return yt(e,n)?{x:t.offsetXOnMobile,y:t.offsetYOnMobile}:{x:t.offsetX,y:t.offsetY}},Ct=function(e){return!!e&&/native code/.test(e+"")},It=function(){return v(navigator.platform,["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"])&&v("Version/15",navigator.userAgent)},Et=function(){return/mobile/gi.test(navigator.userAgent)&&!("MacIntel"===navigator.platform&&v("iPad",navigator.userAgent))},Lt=function(){return v("Chrome",navigator.userAgent)},xt=function(){return/Firefox/.test(navigator.userAgent)},At=function(e,n){var t=function(){n()||S(en,e)},r=function(){n()||S(nn,e)};if("onbeforeprint"in window)window.addEventListener("beforeprint",t),window.addEventListener("afterprint",r);else if(Ct(window.matchMedia)){var i=window.matchMedia("print");i&&i.addListener((function(e){e.matches?t():r()}))}},Ot=function(e,n,t){var r=n.__unsafeProperties.group.eyeCatcher;if(r.enabled&&!function(e,n){var t=e.__unsafeProperties.group;return yt(e,n)?t.disabledMinimizedOnMobile:t.disabledMinimized}(n)){var i,o,a=function(e){var n=qe(e);return n.eyeCatcher.hidden||"minimized"!==n.visibility.state||"online"!==n.availability||n.readyState===Mn},u=function(){i&&(D(i),i=null),clearTimeout(o)},c=function(){var i,o=q("div",rn),c=bt(n);S(((i={bottom:r.y+"px"})[c]=r.x+"px",i),o);var s,d=q("div",on);15>r.x&&"right"===c&&S(((s={})[c]=10-r.x+"px",s),d);d.innerHTML="×";var l=q("div",an),f=L({},un,{src:r.src,alt:t.embedded_chat_now});r.srcset&&(f.srcset=P(r.srcset).map((function(e){return e[1]+" "+e[0]})).join(", "));var p=q("img",f);return l.appendChild(p),p.addEventListener("load",(function(){S({width:p.width+"px",height:p.height+"px"},p)})),p.addEventListener("error",u),o.appendChild(d),o.appendChild(l),At(o,(function(){return a(e.state)})),document.body.appendChild(o),Ct(window.matchMedia)&&window.matchMedia("(hover: none)").matches?S({display:"block"},d):(o.addEventListener("mouseover",(function(){S({display:"block"},d)})),o.addEventListener("mouseout",(function(){S({display:"none"},d)}))),o.addEventListener("click",(function(n){n.stopPropagation(),n.preventDefault(),e.maximize()})),d.addEventListener("mouseover",(function(){S({color:"#444"},d)})),d.addEventListener("mouseout",(function(){S({color:"#000"},d)})),d.addEventListener("click",(function(n){n.preventDefault(),n.stopPropagation(),e.call("hideEyeCatcher")})),o};ce(On(e,a),ye({next:function(e){e?u():o=setTimeout((function(){i=c()}),430)},complete:u}))}},Tt=function(e){e.innerHTML=""},Pt=function(e,n){var t=document.querySelectorAll(".livechat_button"),r=v(n.groupId,n.onlineGroupIds);[].forEach.call(t,(function(t){var i=t.getAttribute("data-id"),o=s((function(e){return e.id===i}),n.buttons);if(o){var a=h("#","0.href",t);"image"===o.type?function(e,n){var t=e.text,r=e.url,i=e.src;Tt(n);var o=q("a",{href:r}),a=q("img",{src:i,alt:t,title:t});o.appendChild(a),n.appendChild(o)}({url:a,text:t.textContent,src:r?o.onlineValue:o.offlineValue},t):function(e,n){var t=e.text,r=e.url;Tt(n);var i=q("a",{href:r});i.appendChild(document.createTextNode(t)),n.appendChild(i)}({url:a,text:r?o.onlineValue:o.offlineValue},t),t.children[0].addEventListener("click",(function(n){n.preventDefault(),e.maximize()}))}}))},St=function(e){return e.replace(/\?+$/,"")},zt=function(){return{title:document.title,url:St(document.location+""),referrer:document.referrer}},jt=function(e){var n;ce((n=2e3,function(e,t){if(0===e){var r=0,i=setInterval((function(){t(1,r++)}),n);t(0,(function(e){2===e&&clearInterval(i)}))}}),de(zt),te((function(e,n){return e.url===n.url})),Ce(ue(e,"unbind")),ie((function(n){e.call("storeMethod",["setApplicationState",{page:n}])})))};var Mt=function(e){ce(Fn(e,(function(){return ue(e,"add_event")})),re((function(e){var n=e.event;return"custom"===n.type&&n.properties.customId&&-1!==n.properties.customId.indexOf("cyber-finger-snapshot-request-")})),ie((function(n){var t,r=n.event.properties.customId.replace("cyber-finger-snapshot-request-","");try{var i=(t=(void 0)[0],JSON.stringify(t));e.call("storeMethod",["emit","send_snapshot",{snapshot:i,requestId:r,screen:{width:window.innerWidth,height:window.innerHeight,scrollY:window.pageYOffset,scrollX:window.pageXOffset}}])}catch(e){}})))},Nt=window.Wix,Dt=function(){return new e((function(e){Nt.getSiteInfo((function(n){var t=n.url,r=n.referrer||n.referer||"";n.baseUrl&&-1===t.indexOf(n.baseUrl)&&(t=n.baseUrl),e({title:n.pageTitle,referrer:r,url:t})}))}))},qt=function(e){var n,t,r,i;ce((n=function(){return!!document.hasFocus&&document.hasFocus()},t=function(e,t){if(0===e){var r=!1;t(0,(function(e){2===e&&(r=!0)})),t(1,n()),r||t(2)}},r=de((function(){return!0}))(oe(window,"focus")),i=de((function(){return!1}))(oe(window,"blur")),ae(t,r,i)),Ce(ue(e,"unbind")),ie((function(n){e.emit("focus",n)})))},Ft=null,Ht=!1;function Bt(){return e=/^Mac/,null!=window.navigator&&e.test(window.navigator.platform);var e}function Rt(e){Ht=!0,function(e){return!(e.metaKey||!Bt()&&e.altKey||e.ctrlKey)}(e)&&(Ft="keyboard")}function Wt(e){Ft="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ht=!0)}function Vt(e){(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType})(e)&&(Ht=!0,Ft="virtual")}function Gt(e){e.target!==window&&e.target!==document&&(Ht||(Ft="keyboard"),Ht=!1)}function Ut(){Ht=!1}var Jt=(document.addEventListener("keydown",Rt,!0),document.addEventListener("keyup",Rt,!0),document.addEventListener("click",Vt,!0),window.addEventListener("focus",Gt,!0),window.addEventListener("blur",Ut,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Wt,!0),document.addEventListener("pointermove",Wt,!0),document.addEventListener("pointerup",Wt,!0)):(document.addEventListener("mousedown",Wt,!0),document.addEventListener("mousemove",Wt,!0),document.addEventListener("mouseup",Wt,!0)),function(){document.removeEventListener("keydown",Rt,!0),document.removeEventListener("keyup",Rt,!0),document.removeEventListener("click",Vt,!0),window.removeEventListener("focus",Gt,!0),window.removeEventListener("blur",Ut,!1),"undefined"!=typeof PointerEvent?(document.removeEventListener("pointerdown",Wt,!0),document.removeEventListener("pointermove",Wt,!0),document.removeEventListener("pointerup",Wt,!0)):(document.removeEventListener("mousedown",Wt,!0),document.removeEventListener("mousemove",Wt,!0),document.removeEventListener("mouseup",Wt,!0))});function Yt(e){if("Google Inc."===navigator.vendor&&"Win32"===navigator.platform){var n,t,r,i=e.frame,o=(n=100,t=function(){S(M(["width"],i),i),requestAnimationFrame((function(){S({width:sn.style.width},i)}))},function(){clearTimeout(r);for(var e=arguments.length,i=Array(e),o=0;e>o;o++)i[o]=arguments[o];r=setTimeout.apply(void 0,[t,n].concat(i))});document.addEventListener("scroll",o);e.on("unbind",(function n(){e.off("unbind",n),document.removeEventListener("scroll",o)}))}}var Xt={position:It()?"absolute":"fixed",height:It()?"calc(100vh - env(safe-area-inset-bottom))":"100%",width:"100%",top:0,right:0,bottom:0,left:0,overflowY:"hidden"},$t=function(e){var n=document.querySelector('meta[name="viewport"]')||function(){var e=q("meta",{name:"viewport"});return document.getElementsByTagName("head")[0].appendChild(e),e}(),t=null,r=function(){var e,r=n.content,i=(e=document.body,Object.keys(Xt).reduce((function(n,t){return n[t]=e.style[t],n}),{})),o=document.documentElement.scrollTop;return n.content="width=device-width, initial-scale=1.0, maximum-scale=1.0",S(Xt,document.body),function(){t=null,S(i,document.body),n.content=r,document.documentElement.scrollTop=o}};An(e.state,"maximized")&&(t=r()),ce(On(e,(function(e){return An(e,"maximized")})),he,ye({next:function(e){e[1]?t=r():t()},complete:function(){t&&t()}}))},Kt=Et(),Qt=function(e,n){if(e.iframeAddress)return e.iframeAddress;var t="https://secure"+((1520===e.licenseId?"-lc":"")+".livechatinc.com");return n.region&&(t=t.replace("secure","secure-"+n.region)),t+"/customer/action/open_chat"},Zt=function(e,n,t){var r=!!e.customContainer;return{page:n,license:e.licenseId,region:t.region,group:t.groupId,requestedGroup:e.requestedGroupId,customer:e.customer,hidden:!(e.actingAsDirectLink||r)&&function(e){var n=e.__unsafeProperties.group;return Kt&&n.hasCustomMobileSettings?n.initiallyHiddenOnMobile:n.initiallyHidden}(t),uniqueGroups:e.uniqueGroups,analytics:{googleAnalytics:{enabled:!!t.integrations.analytics,trackerName:tt(e.gaParams)},kissmetrics:{enabled:!!t.integrations.kissmetrics},mixpanel:{enabled:!!t.integrations.mixpanel}},actingAsDirectLink:e.actingAsDirectLink,initMaximized:e.initMaximized,isInCustomContainer:r,clientLimitExceeded:t.clientLimitExceeded,integrationName:e.integrationName,iframeAddress:Qt(e,t)}},er=function(){var e="lc_get_time_"+p();window.performance&&"function"==typeof window.performance.mark&&window.performance.mark(e);var n=performance.getEntriesByName(e)[0].startTime;return performance.clearMarks(e),n},nr=function(){if("undefined"==typeof PerformanceObserver)return null;var n=er(),t=[],r=new PerformanceObserver((function(e){t.push.apply(t,e.getEntries())}));r.observe({entryTypes:["longtask"]});var i=function(){var e,r=y(t);return r?(e=r,er()-e.startTime+e.duration):er()-n};return{disconnect:function(){return r.disconnect()},getLongTasks:function(){return[].concat(t)},waitForIdle:function(n){return new e((function(e){!function o(){t.push.apply(t,r.takeRecords());var a=i();n>a?setTimeout(o,Math.ceil(n-a)):e()}()}))}}},tr=function(n){void 0===n&&(n="first-contentful-paint");var t,r=nr();return r?(t=n,new e((function(e){var n=performance.getEntriesByName(t);if(g(n))if("undefined"!=typeof PerformanceObserver){var r=setTimeout((function(){i.disconnect(),e(null)}),6e4),i=new PerformanceObserver((function(n){var o=s((function(e){return e.name===t}),n.getEntries());o&&(i.disconnect(),clearTimeout(r),e(o))}));i.observe({entryTypes:["paint"]})}else e(null);else e(n[0])}))).then((function(e){return e?r.waitForIdle(5e3).then((function(){return r.disconnect(),r.getLongTasks()})):null})):e.resolve(null)},rr=function(e){var n=performance.getEntriesByName(e);return 1!==n.length?null:n[0]},ir=function(e,n){return e&&n?Math.abs(n.startTime-e.startTime):null},or=function(e){if(!e)return null;var n=performance.getEntriesByType("navigation");return e.startTime-(g(n)?performance.timing.domContentLoadedEventStart-performance.timing.navigationStart:n[0].domContentLoadedEventStart)},ar=function(){if(!Math.floor(1e3*Math.random())){var e=tr().then((function(e){return e?O(e.filter((function(e){return v(".livechatinc.com",e.attribution[0].containerSrc)})).map((function(e){return e.duration}))):null}));return{getLogs:function(){return e.then((function(e){var n,t=1!==(n=performance.getEntriesByType("resource").filter((function(e){return/livechatinc\.com\/(.+\/)?tracking.js/.test(e.name)}))).length?null:n[0],r=rr("lc_bridge_init"),i=rr("lc_bridge_ready");return u((function(e){return e&&Number(e.toFixed(2))}),{timeFromTrackingStart:ir(t,i),timeFromBridgeInit:ir(r,i),timeFromDomContentLoaded:or(i),totalBlockingTimeContributedToOurScript:e})}))}}}};function ur(n,t){return t=t||{},new e((function(r,i){var o=new XMLHttpRequest,a=[],u=[],c={},s=function n(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return e.resolve(o.responseText)},json:function(){return e.resolve(o.responseText).then(JSON.parse)},blob:function(){return e.resolve(new Blob([o.response]))},clone:n,headers:{keys:function(){return a},entries:function(){return u},get:function(e){return c[e.toLowerCase()]},has:function(e){return e.toLowerCase()in c}}}};for(var d in o.open(t.method||"get",n,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,n,t){a.push(n=n.toLowerCase()),u.push([n,t]),c[n]=c[n]?c[n]+","+t:t})),r(s())},o.onerror=i,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(d,t.headers[d]);o.send(t.body||null)}))}var cr={};function sr(n,t){var r=void 0===t?{}:t,i=r.query,o=void 0===i?{}:i,a=r.jsonpParam,u=void 0===a?"jsonp":a,c=r.callbackName;return new e((function(e,t){N().then((function(r){var i,a=document.createElement("script"),s=c||m(cr);cr[s]=!0;var d="__"+s;window[d]=function(n){delete cr[s],delete window[d],D(a),e(n)},a.src=n+"?"+F(L({},o,((i={})[u]=d,i))),a.addEventListener("error",(function(){setTimeout((function(){return t(Error("JSONP request failed."))}),100)})),r.appendChild(a)}))}))}var dr,lr="__test_storage_support__",fr="@@test",pr=function(e){void 0===e&&(e="local");try{var n="session"===e?window.sessionStorage:window.localStorage;return n.setItem(lr,fr),n.getItem(lr)!==fr?!1:(n.removeItem(lr),!0)}catch(e){return!1}},mr=function(){var e=Object.create(null);return{getItem:function(n){var t=e[n];return"string"==typeof t?t:null},setItem:function(n,t){e[n]=t},removeItem:function(n){delete e[n]},clear:function(){e=Object.create(null)}}}(),hr=(pr()&&window,Object.freeze({success:!0}),(dr={}).CONNECTION_LOST="Connection lost.",dr.MISDIRECTED_CONNECTION="Connected to wrong region.",function(e){return e.map((function(e){switch(e.type){case"group_chooser":return L({},e,{options:e.options.map((function(e){var n=e.group_id;return L({},Fe(e,["group_id"]),{groupId:n})}))});case"rating":var n=e.comment_label;return L({},Fe(e,["comment_label"]),{commentLabel:n});default:return e}}))}),vr=function(e){var n,t;return{id:e.id,fields:!("id"in e.fields[0])?(n=e.fields,t=n.map((function(e,n){return L({},e,{id:n+""})})),hr(t)):hr(e.fields)}},gr=function(e){var n=function(e){return e.replace(K,"")}(e);return"https://"+(!v("cdn.livechatinc.com/cloud/?uri",n)&&!v(".livechat-static.com/",n)?"cdn.livechatinc.com/cloud/?"+F({uri:"https://"+n}):n)},_r=/\.([a-z]{1,})$/i,wr=function(e){var n=e.__priv,t={enabled:!0,x:parseInt(n.group["embedded_chat.eye_grabber.x"])+15,y:parseInt(n.group["embedded_chat.eye_grabber.y"]),src:gr(n.group["embedded_chat.eye_grabber.path"])};if(-1!==t.src.indexOf("/default/eyeCatchers/")){var r=t.src.match(_r)[1];t.srcset={"1x":t.src,"2x":t.src.replace(RegExp("\\."+r,"i"),"-2x."+r)}}return t},yr=function(e,n){return"https://api"+((r=(t=n).region)&&"dal"!==r?"-"+r:"")+function(e){return 1520===e?".staging":""}(t.licenseId)+".livechatinc.com/v3.3/customer/action/"+e;var t,r},br=function e(n){return sr(yr("get_dynamic_configuration",n),{query:L({license_id:n.licenseId,url:Q(n.url,["cw_configurator"])},"number"==typeof n.groupId&&{group_id:n.groupId},n.channelType&&{channel_type:n.channelType},n.skipCodeInstallationTracking&&{test:1})}).then((function(t){if(t.error)switch(t.error.type){case"misdirected_request":return e(L({},n,{region:t.error.data.region}));case"license_expired":if("direct_link"===n.channelType){var r=F({utm_source:"expired_chat_link",utm_medium:"referral",utm_campaign:"expired"});window.location.replace("https://www.livechat.com/powered-by-livechat/?"+r)}var i=Error(t.error.message);throw i.code=t.error.type.toUpperCase(),i;default:var o=Error(t.error.message);throw o.code=t.error.type.toUpperCase(),o}if(!t.domain_allowed){var a=Error("Current domain is not added to the allowlist.");throw a.code="DOMAIN_NOT_ALLOWED",a}return{groupId:t.group_id,clientLimitExceeded:t.client_limit_exceeded,configVersion:t.config_version,localizationVersion:t.localization_version,onlineGroupIds:t.online_group_ids||[],region:n.region||null}}))},kr=function(e){var n,t,r,i=e.allowVideoConferencing,o=e.allowClipboardWrite,a=e.allowDisplayCapture,u=[];if(e.allowAutoplay&&!xt()&&u.push("autoplay;"),a&&u.push("display-capture *;"),i){var c={"display-capture *;":!Lt()||(r=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),(r?parseInt(r[2],10):0)>=94),"picture-in-picture *;":"PictureInPictureEvent"in window,"fullscreen *;":"function"==typeof Element.prototype.requestFullscreen};u=[].concat(u,["microphone *;","camera *;"],Object.keys((n=Boolean,Object.keys(t=c).reduce((function(e,r){return n(t[r])&&(e[r]=t[r]),e}),{}))))}return o&&!xt()&&u.push("clipboard-write *;"),u.join(" ")},Cr="data-lc-focus",Ir="data-lc-event",Er="data-lc-prop";function Lr(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return xr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return xr(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return e.length>r?{done:!1,value:e[r++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function xr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);n>t;t++)r[t]=e[t];return r}var Ar=E;var Or=Et(),Tr=function(e){return Or?{width:"100%",height:"100%"}:"modern"===e.__unsafeProperties.group.theme.name?{width:"400px",height:"465px"}:{width:"352px",height:"652px"}},Pr=function(e,n){return Object.keys(e.properties.license).some((function(t){return e.properties.license[t][n]}))},Sr=function(e,n,t){var r,i,o,a=kt(n,Or);return!e&&t?((i={})[bt(n,Or)]="0",i.bottom=a.y+"px",i.maxHeight="100%",i):Or&&e?((o={})[bt(n,Or)]="0",o.bottom="0",o.maxHeight="100%",o):((r={})[bt(n,Or)]=a.x+"px",r.bottom=a.y+"px",r.maxHeight="calc(100% - "+a.y+"px)",r)},zr=function(e){return e.style.setProperty("transition","none","important")},jr=function(e,n){var t,r=q("div",tn),i=kt(e,Or),o=Sr(n,e),a=Tr(e);return S(L(((t={width:a.width,height:a.height})[bt(e,Or)]=i.x+"px",t),o),r),r},Mr=function(n,t,r,i,o){var a,u,c=F(L({license_id:t.license,group:t.group,embedded:1,widget_version:3,unique_groups:Number(t.uniqueGroups)},!!i&&{custom_identity_provider:1},!!o&&{features:o})),d={kill:function(){this._emit("widget_resize",{size:{width:"0px",height:"0px"}}),this.unbind(),n.custom||D(n.element)},applyHiddenStyles:function(){S(en,n.element)},isFocused:function(){return!!document.hasFocus&&document.hasFocus()},resize:function(e){var t=void 0===e?{}:e,i={width:t.width,height:t.height},o=Sr(t.maximized,r,t.ignoreHorizontalOffset);S(L({},i,o),n.element);var a=M(["width","height"],n.element);this._emit("widget_resize",{size:i,computedSize:a})},show:function(){S(nn,n.element)},hide:function(){this.call("hide")},minimize:function(){this.call("minimize")},maximize:function(){var e=this;if(!!window.event&&window.event.isTrusted&&v(window.event.type,["click","pointerdown","pointerup","mousedown","mouseup","touchstart","touchend"])){var n=document.activeElement;n.addEventListener("blur",(function t(){n.removeEventListener("blur",t),e.emit("host_focus_shifted")})),this.call("maximize",{modality:Ft})}else this.call("maximize")},unbind:function(){var e=this;this.hide(),this.destroy(),this._emit("unbind"),this.off(),this.call=E,Object.keys(d).forEach((function(n){e[n]=E})),Jt()},callIdentityProvider:function(e){return null==i?void 0:i[e]()},applyFramesStyle:function(e){var n=e.minimizedFrameStyle,t=e.maximizedFrameStyle,r=document.getElementById(Qe),i=document.getElementById(Ze);r&&S(t,r),i&&S(n,i)},renderCrossFrameMarkup:function(e){var t=e[0],r=e[1],i=document.getElementById(Ze);i||(i=document.createElement("iframe"),z(dn,i),n.element.appendChild(i)),function(e,n,t,r){var i=t.contentDocument;if(null===i)throw Error("Parameter `frame` needs to be inserted into any document before rendering");Lt()?(i.head.innerHTML=e,i.body.innerHTML=n):(i.open(),i.write("\n\t\t\t\n\t\t\t\n\t\t\t\t
"+e+"\n\t\t\t\t"+n+"\n\t\t\t\n\t\t"),i.close());for(var o,a=i.documentElement,u=Lr(T(a.querySelectorAll("["+Ir+"]")));!(o=u()).done;){var c=o.value,s=c.getAttribute(Ir);if("string"==typeof s)for(var d,l=function(){var e=d.value.split(":"),n=e[0],t=e[1];if(!n||!t)return"continue";c.removeAttribute(Ir),c.addEventListener(n,(function(e){var n,i,o,a,u,c,s,d,l,f;e.stopPropagation();var p={type:e.type,bubbles:!0,isTrusted:e.isTrusted,cancelBubble:e.cancelBubble,cancelable:e.cancelable,composed:e.composed,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,timeStamp:e.timeStamp,currentTarget:{value:null==(n=e.currentTarget)?void 0:n.value,checked:null==(i=e.currentTarget)?void 0:i.checked,disabled:null==(o=e.currentTarget)?void 0:o.disabled,draggable:null==(a=e.currentTarget)?void 0:a.draggable,hidden:null==(u=e.currentTarget)?void 0:u.hidden},target:{value:null==(c=e.target)?void 0:c.value,checked:null==(s=e.target)?void 0:s.checked,disabled:null==(d=e.target)?void 0:d.disabled,draggable:null==(l=e.target)?void 0:l.draggable,hidden:null==(f=e.target)?void 0:f.hidden}};r.call("crossFrameEvent",t,JSON.stringify(p))}))},f=Lr(s.split(";"));!(d=f()).done;)l()}var p=a.querySelector("["+Cr+"]");p&&(p.removeAttribute(Cr),p.focus(),"INPUT"===p.nodeName)&&p.setSelectionRange(p.value.length,p.value.length);for(var m,h=[],v=function(){var e=m.value,n=e.getAttribute(Er);if("string"!=typeof n)return"continue";e.removeAttribute(Er);var t=n.split(":"),r=t[0],i=t[1];h.push((function(n){var t,o,a=null==(t=n.views)||null==(o=t.minimized)?void 0:o[i.replace("!","")];"string"==typeof a&&(a=a.trim()),"disabled"===r&&(a=i.includes("!")?!a:!!a),"boolean"==typeof a?e.toggleAttribute(r,a):a?e.setAttribute(r,a):e.removeAttribute(r)}))},g=Lr(T(a.querySelectorAll("["+Er+"]")));!(m=g()).done;)v();h.forEach((function(e){return e(r.state)})),r.off("state_diff",Ar),r.on("state_diff",Ar=function(e){var n;(null==e||null==(n=e.views)?void 0:n.minimized)&&h.forEach((function(n){return n(e)}))})}(t,r,i,this)},getMinimizedDimensions:function(){var e=document.getElementById(Ze).contentDocument.querySelector('[role="main"]');return M(["width","height"],e)}},l=t.iframeAddress+"?"+c,f=new MutationObserver((function(e){return e.forEach((function(e){var t=s((function(e){return"IFRAME"===e.tagName&&e.getAttribute("src")===l}),e.addedNodes);t&&function(e,n){z(sn,n),e.custom||S(cn,n)}(n,t)}))}));return f.observe(n.element,{childList:!0}),new Ye({container:n.element,url:l,methods:d,iframeAllowedProperties:kr({allowAutoplay:!0,allowVideoConferencing:Pr(r,"microphone"),allowClipboardWrite:Pr(r,"clipboard_write"),allowDisplayCapture:1520===t.license||!1}),model:L({},t,{fullWidth:null==(a=n.size)?void 0:a.width,fullHeight:null==(u=n.size)?void 0:u.height,serverConfig:r,parentWidth:window.innerWidth,parentHeight:window.innerHeight})}).then((function(n){return e.all([n,Ke(n)])})).then((function(e){var n=e[0];return f.disconnect(),n}))},Nr=function(e,n,t,r,i){e.call("storeMethod",["setLocalization",r]),t.custom||At(t.element,(function(){return An(e.state,"hidden")})),Or||"wix"===n.integrationName||Ot(e,i,r),zr(e.frame),function(e,n,t){Gn(e,n,t),"LiveChatWidget"in window&&Qn(e,n,t)}(e,n,i),at(e,n),ce(Fn(e,(function(){return function(e){var n=!1;e.on("iframe_sound_unlocked",(function(){return n=!0})),wt().then((function(t){n||(e.emit("bridge_sound_unlocked"),e.on("add_event",(function(n){var r=n.event;qe(e.state,"muted")||function(e,n){return"system"!==e.author&&!e.properties.welcomeMessage&&e.author!==n&&"custom"!==e.type}(r,Ne(e.state))&&t(_t)})))}))}(e),pe})),ie(E)),"wix"===n.integrationName?function(e){Nt.addEventListener(Nt.Events.PAGE_NAVIGATION,(function(){Dt().then((function(n){return e.call("storeMethod",["setApplicationState",{page:n}])}))}))}(e):jt(e),qt(e),n.actingAsDirectLink||t.custom||function(e){ce(On(e,(function(e){return An(e,"hidden")})),we(1),ie((function(n){n?e.applyHiddenStyles():e.show()})))}(e),Yt(e),function(e){var n=function(){setTimeout((function(){document.addEventListener("touchstart",E),setTimeout((function(){document.removeEventListener("touchstart",E)}),500)}),500)};window.addEventListener("orientationchange",n),e.on("unbind",(function t(){e.off("unbind",t),window.removeEventListener("orientationchange",n)}))}(e),Pt(e,i),Or&&$t(e),Mt(e),e.on("rich_greeting_button_clicked",(function(e){var n=e.button;"url"===n.type&&Un.navigate(n.value)})),e.on("open_in_new_tab",(function(e){Un.navigate(e)}))},Dr=function(n){return br(n).then((function(t){var r;return e.all([t,(r={licenseId:n.licenseId,groupId:t.groupId,region:t.region,version:t.configVersion},sr(yr("get_configuration",r),{callbackName:"lc_static_config",query:L({license_id:r.licenseId,version:r.version},"number"==typeof r.groupId&&{group_id:r.groupId})}).then((function(e){var n=e.buttons,t=e.allowed_domains,r=e.prechat_form,i=e.ticket_form,o=e.__priv;return L({},Fe(e,["buttons","allowed_domains","prechat_form","ticket_form","__priv"]),r&&{prechatForm:vr(r)},i&&{ticketForm:vr(i)},{buttons:n.map((function(e){return"image"===e.type?{id:e.id,type:e.type,onlineValue:gr(e.online_value),offlineValue:gr(e.offline_value)}:{id:e.id,type:e.type,onlineValue:e.online_value,offlineValue:e.offline_value}}))},t&&{allowedDomains:t},{__unsafeProperties:L({},o.s&&{s:!0},{group:{chatBoosters:o.group.chat_boosters,disabledMinimized:"1"===o.group["chat_window.disable_minimized"],disabledMinimizedOnMobile:"1"===o.group["chat_window.mobile_disable_minimized"],disabledOnMobile:"1"===o.group["chat_window.hide_on_mobile"],eyeCatcher:"1"===o.group["embedded_chat.display_eye_catcher"]?wr(e):{enabled:!1},hasAgentAvatarsEnabled:"1"===o.group["chat_window.display_avatar"],hasCustomMobileSettings:"1"===o.group["chat_window.custom_mobile_settings"],hasHiddenTrademark:"1"===o.group["chat_window.hide_trademark"],hasSoundsEnabled:"0"===o.group["chat_window.disable_sounds"],initiallyHidden:"1"===o.group["chat_window.hide_on_init"]||"1"===o.group["chat_window.disable_minimized"],initiallyHiddenOnMobile:"1"===o.group["chat_window.mobile_hide_on_init"]||"1"===o.group["chat_window.mobile_disable_minimized"],hideOnInit:"1"===o.group["chat_window.hide_on_init"],language:o.group.language,linksUnfurlingEnabled:"1"===o.group.links_unfurling,logo:"1"===o.group["chat_window.display_logo"]?{enabled:!0,src:o.group["chat_window.logo_path"]}:{enabled:!1},minimizedType:o.group["chat_window.theme.minimized"],minimizedTypeOnMobile:o.group["chat_window.mobile_minimized_theme"],offlineMessagesEnabled:"0"===o.group.tickets_enabled,offsetX:parseInt(o.group["chat_window.offset_x"]),offsetXOnMobile:parseInt(o.group["chat_window.mobile_offset_x"]),offsetY:parseInt(o.group["chat_window.offset_y"]),offsetYOnMobile:parseInt(o.group["chat_window.mobile_offset_y"]),prechatFormAfterGreetingEnabled:"1"===o.group.pre_chat_survey_after_greeting,ratingEnabled:"1"===o.group["rate_me.enabled"],screenPosition:o.group["chat_window.screen_position"],screenPositionOnMobile:o.group["chat_window.mobile_screen_position"],transcriptButtonEnabled:"1"===o.group["chat_window.display_transcript_button"],theme:{name:o.group["chat_window.new_theme.name"],variant:o.group["chat_window.new_theme.variant"]||"light",customJson:o.group["chat_window.new_theme.custom_json"],agentbarBackgroundColor:o.group["chat_window.new_theme.agentbar_background_color"],agentbarText:o.group["chat_window.new_theme.agentbar_text"],agentMessageColorBackground:o.group["chat_window.new_theme.agent_message_color_background"],agentMessageColorText:o.group["chat_window.new_theme.agent_message_color_text"],backgroundColor:o.group["chat_window.new_theme.background_color"],ctaColor:o.group["chat_window.new_theme.cta_color"],minimizedColorBackground:o.group["chat_window.new_theme.minimized_color_background"],minimizedColorIcon:o.group["chat_window.new_theme.minimized_color_icon"],minimizedColorText:o.group["chat_window.new_theme.minimized_color_text"],systemMessageColor:o.group["chat_window.new_theme.system_message_color"],titlebarBackgroundColor:o.group["chat_window.new_theme.titlebar_background_color"],titlebarText:o.group["chat_window.new_theme.titlebar_text"],visitorMessageColorBackground:o.group["chat_window.new_theme.visitor_message_color_background"],visitorMessageColorText:o.group["chat_window.new_theme.visitor_message_color_text"]}},license:{continuousChatWidgetEnabled:"1"===o.license.continuous_chat_widget_enabled,creditCardMaskingEnabled:"1"===o.license.mask_credit_cards,customerHistoryEnabled:"1"===o.license.customer_history_enabled,fileSharingEnabled:"1"===o.license["attachments.enable_for_visitors"],inboundForwardingToHelpdeskEnabled:"1"===o.license["helpdesk.inbound_forwarding"],nonProfit:"1"===o.license.non_profit}})})})))]).then((function(e){return L({},e[0],e[1])}))}))};var qr,Fr,Hr,Br,Rr=function(e){return function(e){return"number"==typeof e&&e>=0}(t="string"==typeof(n=void 0!==e.group?e.group:e.skill)?parseInt(n,10):n)?t:null;var n,t},Wr=function(e,n){var t={name:null,email:null,properties:{}};if("object"==typeof e&&e){var r=e.name,i=e.email;"string"==typeof r&&(t.name=r),"string"==typeof i&&(t.email=i)}return Array.isArray(n)&&(t.properties=In(n)),t};if(!window.__lc_inited)if(window.__lc_inited=!0,"msCrypto"in window)console.error("[LiveChat] We no longer support Internet Explorer");else{var Vr=(Hr=window.__lc,{licenseId:parseInt(Hr.license),requestedGroupId:Rr(Hr),uniqueGroups:!1===Hr.chat_between_groups,customer:Wr(Hr.visitor,Hr.params),skipCodeInstallationTracking:1===Hr.test,integrationName:Hr.wix?"wix":"string"==typeof Hr.integration_name?Hr.integration_name:null,actingAsDirectLink:!0===Hr.direct_link,initMaximized:!0===Hr.init_maximized,customContainer:Hr.custom_container||null,gaParams:{version:"string"==typeof Hr.ga_version?Hr.ga_version:null,omitGtm:!!Hr.ga_omit_gtm,sendToAll:!!Hr.ga_send_to_all_trackers},customIdentityProviderInitializer:"function"==typeof Hr.custom_identity_provider?Hr.custom_identity_provider:null,iframeAddress:null,region:v(Hr.region,(Br=qn,Object.keys(Br).map((function(e){return Br[e]}))))?Hr.region+"":null});!Vr.actingAsDirectLink&&(qr="cw_configurator",Fr=window.location.search,J(Fr)[qr]||pr("session")&&window.sessionStorage.getItem("cw_configurator"))?N().then((function(e){var n=document.createElement("iframe");S({display:"none"},n),e.appendChild(n),xt()&&(n.contentDocument.open(),n.contentDocument.close());var t=n.contentDocument.head;["https://cdn.livechatinc.com/widget/static/js/runtime-configurator.3dab56df.js","https://cdn.livechatinc.com/widget/static/js/0.4d56395b.chunk.js","https://cdn.livechatinc.com/widget/static/js/2.27cbefe6.chunk.js","https://cdn.livechatinc.com/widget/static/js/configurator.86dbd1a8.chunk.js"].forEach((function(e){!function(e,n){var t=document.createElement("script");z({src:n,charset:"utf-8"},t),e.appendChild(t)}(t,e)}))})):3===[1].reduce((function(e,n){return e+n}),2)?function(n){window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("lc_bridge_init");var t=!1;window.LC_API=window.LC_API||{},window.LC_API.is_loaded=function(){return t};var r=n.region,i=n.requestedGroupId,a=n.integrationName,u=n.customIdentityProviderInitializer,c=L({licenseId:n.licenseId,skipCodeInstallationTracking:n.skipCodeInstallationTracking,channelType:n.actingAsDirectLink?"direct_link":"code",url:St(document.location+"")},"number"==typeof i&&{groupId:i},"string"==typeof r&&{region:r});e.all([Dr(c),"wix"===a?Dt():zt(),N()]).then((function(r){var i=r[0],a=r[1],c=r[2];if(hn(i.allowedDomains,window.top===window?window.location.hostname:document.referrer)){if(!Or||!i.__unsafeProperties.group.disabledOnMobile||n.actingAsDirectLink){var s=ar(),d=function(e){if(null===e)return null;var n=e();return"object"!=typeof n||"function"!=typeof n.getToken||"function"!=typeof n.getFreshToken||"function"!=typeof n.hasToken||"function"!=typeof n.invalidate?(console.error("custom_identity_provider() does not return proper handlers. ({getFreshToken: () => Promise